import Vue from 'vue'
import Router from 'vue-router'


// 1. helloword 页面
import login from '@/views/user/Login'
import index from '@/views/user/Index'
import template from '@/views/workflow/Template'
import instance from '@/views/workflow/Instance'
import myinstance from '@/views/workflow/MyInstance'
import myexamine from '@/views/workflow/MyExamine'
import student from '@/views/user/Search'
import add from '@/views/user/Add'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/login/',
      name: 'login',
      component: login
    },
    {
      path: '/student/edit/',
      name: 'student',
      component: student
    },
    {
      path: '/student/add/',
      name: 'student_add',
      component: add
    },
    {
      path: '/template/',
      name: 'template',
      component: template
    },
    {
      path: '/instance/',
      name: 'instance',
      component: instance
    },
    {
      path: '/myinstance/',
      name: 'myinstance',
      component: myinstance
    },
    {
      path: '/myexamine/',
      name: 'myexamine',
      component: myexamine
    },

  ],
  mode: 'history'
})


